package com.hxy.Test;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int num1 = sc.nextInt();
        System.out.println("请输入第二个数字");
        int num2 = sc.nextInt();
        boolean first = (num1 == 6 | num2 == 6);
        boolean second = (num1 + num2) % 6 == 0;
        System.out.println("是否成功:" + (first | second));
    }
}
